/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.dip.dipcomplient.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.dip.dipcomplient.customer.Impl.Cash;
import za.ac.cput.dip.dipcomplient.customer.Impl.MasterCard;
import za.ac.cput.dip.dipcomplient.customer.PaymentMethod;

/**
 *
 * @author given
 */
@Configurable
public class AppConfig {
    @Bean (name = "cash")
    public PaymentMethod payInCash(){
        return new Cash();
    }
    
    @Bean (name = "masterCard")
    public  MasterCard payWithMasterCard(){
        return new MasterCard();
    }
}
